//
//  WelComeLoginViewController.m
//  ConscienceWorldPorject
//
//  Created by 孙海琛 on 2019/11/28.
//  Copyright © 2019 孙海琛. All rights reserved.
//

#import "WelComeLoginViewController.h"
#import "LoginViewController.h"

@interface WelComeLoginViewController ()
@property (weak, nonatomic) IBOutlet UIView *baseView;
@property (weak, nonatomic) IBOutlet UIView *subView;

@end

@implementation WelComeLoginViewController

-(void)viewDidLayoutSubviews{
    [super viewDidLayoutSubviews];
    [self.baseView.layer addSublayer:[UIColor setGradualChangingColor:self.baseView fromColor:@"#FF3333" toColor:@"#FF0012"]];
}
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self changeBarWhiteOrBlack:YES];
    self.navigationBarAlphaMu = 0;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self createUI];
}
- (void)createUI{
    kWeakSelf;
    [self hiddenNavigationBackBtn];
    [self addNavigationRightBtn:@"" image:KIMG(@"login_close_white") itemByTapped:^(UIButton *sender) {
        [weakSelf dismissViewControllerAnimated:YES completion:nil];
    }];
    ViewRadius(_subView, 10);
}
//100个人 101企业
- (IBAction)loginAction:(UIButton *)sender {
    LoginViewController *vc = [[LoginViewController alloc] init];
    vc.loginType = sender.tag==100?0:1;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
